home *** CD-ROM | disk | FTP | other *** search
- { simple exchange extension. Adds a menu separator
- and a menu item }
-
- library HelloWorld1;
-
- uses
- SysUtils,
- Classes,
- Dialogs,
- ExchExt,
- ComHelloWorld1 in 'ComHelloWorld1.pas';
-
-
-
- { due to a Delphi bug, this doesn't work
- function ExchEntryPoint: IExchExt; cdecl;
- begin
- try
- Result := TExchExt.Create;
- except
- on E:Exception do begin
- ShowMessage('Could not install custom Exchange Extion: ' + E.Message);
- Result := nil;
- end;
- end;
- end;
- }
-
-
-
- function ExchEntryPoint: pointer; cdecl;
- var
- ExchExt: IExchExt;
- begin
- try
- ExchExt := TExchExt.Create;
- ExchExt._AddRef;
- Result := pointer(ExchExt);
- except
- on E:Exception do begin
- ShowMessage('Could not install custom Exchange Extion: ' + E.Message);
- Result := nil;
- end;
- end;
- end;
-
-
- exports
- ExchEntryPoint index 1;
-
-
- begin
- end.
-